package adv3;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class DateTest {
    public static void main(String[] args) {
        Date d=new Date();
        System.out.println(d);
        int year=d.getYear();
        System.out.println("年"+year);
        int month=d.getMonth();
        System.out.println("月："+month);
        int date=d.getDate();
        System.out.println("日："+date);
        int day=d.getDay();
        System.out.println("周："+day);
        System.out.println("毫秒："+d.getTime());
    }
}
